#ifndef PREGNANCY_DATE_FORMULA_H
#define PREGNANCY_DATE_FORMULA_H
#include "abstractformula.h"
#include <QDate>

class Pregnancy_Date_Formula : public AbstractFormula
{
public:
    Pregnancy_Date_Formula()
        :AbstractFormula(tr("Pregnancy date formula")){}

    /*!
    *  \brief Accouchement Date
    *  Return Accouchement Date
    *  \param lastMenstrualDate is a QDate
    */

    QDate result(QDate lastMenstrualDate)
    {
        return lastMenstrualDate.addDays(14).addMonths(9);
    }
  };

#endif // PREGNANCY_DATE_FORMULA_H
